package day07.ThreadDemo;

/*
 * Author: JacksonCoder
 * FileName: volatileDemo
 * Version: 1.0.0
 * Date: 2025/4/14
 */

public class volatileDemo {
    private volatile boolean flag = true;
    public static void main(String[] args) {

    }

    public void stop(){
        flag = false;
    }
}
